<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style>
		div{
			width: 100px;
			height: 50px;
			background: yellow;
			transition: transform 2s,display ease-in 2s;

		}

		div:hover{
			transform: rotate(360deg);
			background: red;
			border-radius: 50%;
		}
	</style>
</head>
<body>
	  <div></div>
</body>
</html>